{"ast":null,"code":"import { generate } from '@ant-design/colors';\nimport { defaultPresetColors } from '../seed';\nimport genColorMapToken from '../shared/genColorMapToken';\nimport { generateColorPalettes, generateNeutralColorPalettes } from './colors';\nimport defaultAlgorithm from '../default';\nvar derivative = function derivative(token, mapToken) {\n  var colorPalettes = Object.keys(defaultPresetColors).map(function (colorKey) {\n    var colors = generate(token[colorKey], {\n      theme: 'dark'\n    });\n    return new Array(10).fill(1).reduce(function (prev, _, i) {\n      prev[\"\".concat(colorKey, \"-\").concat(i + 1)] = colors[i];\n      return prev;\n    }, {});\n  }).reduce(function (prev, cur) {\n    prev = Object.assign(Object.assign({}, prev), cur);\n    return prev;\n  }, {});\n  var mergedMapToken = mapToken !== null && mapToken !== void 0 ? mapToken : defaultAlgorithm(token);\n  return Object.assign(Object.assign(Object.assign({}, mergedMapToken), colorPalettes), genColorMapToken(token, {\n    generateColorPalettes: generateColorPalettes,\n    generateNeutralColorPalettes: generateNeutralColorPalettes\n  }));\n};\nexport default derivative;","map":{"version":3,"names":["generate","defaultPresetColors","genColorMapToken","generateColorPalettes","generateNeutralColorPalettes","defaultAlgorithm","derivative","token","mapToken","colorPalettes","Object","keys","map","colorKey","colors","theme","Array","fill","reduce","prev","_","i","cur","assign","mergedMapToken"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/theme/themes/dark/index.js"],"sourcesContent":["import { generate } from '@ant-design/colors';\nimport { defaultPresetColors } from '../seed';\nimport genColorMapToken from '../shared/genColorMapToken';\nimport { generateColorPalettes, generateNeutralColorPalettes } from './colors';\nimport defaultAlgorithm from '../default';\nconst derivative = (token, mapToken) => {\n  const colorPalettes = Object.keys(defaultPresetColors).map(colorKey => {\n    const colors = generate(token[colorKey], {\n      theme: 'dark'\n    });\n    return new Array(10).fill(1).reduce((prev, _, i) => {\n      prev[`${colorKey}-${i + 1}`] = colors[i];\n      return prev;\n    }, {});\n  }).reduce((prev, cur) => {\n    prev = Object.assign(Object.assign({}, prev), cur);\n    return prev;\n  }, {});\n  const mergedMapToken = mapToken !== null && mapToken !== void 0 ? mapToken : defaultAlgorithm(token);\n  return Object.assign(Object.assign(Object.assign({}, mergedMapToken), colorPalettes), genColorMapToken(token, {\n    generateColorPalettes,\n    generateNeutralColorPalettes\n  }));\n};\nexport default derivative;"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,mBAAmB,QAAQ,SAAS;AAC7C,OAAOC,gBAAgB,MAAM,4BAA4B;AACzD,SAASC,qBAAqB,EAAEC,4BAA4B,QAAQ,UAAU;AAC9E,OAAOC,gBAAgB,MAAM,YAAY;AACzC,IAAMC,UAAU,GAAG,SAAbA,UAAU,CAAIC,KAAK,EAAEC,QAAQ,EAAK;EACtC,IAAMC,aAAa,GAAGC,MAAM,CAACC,IAAI,CAACV,mBAAmB,CAAC,CAACW,GAAG,CAAC,UAAAC,QAAQ,EAAI;IACrE,IAAMC,MAAM,GAAGd,QAAQ,CAACO,KAAK,CAACM,QAAQ,CAAC,EAAE;MACvCE,KAAK,EAAE;IACT,CAAC,CAAC;IACF,OAAO,IAAIC,KAAK,CAAC,EAAE,CAAC,CAACC,IAAI,CAAC,CAAC,CAAC,CAACC,MAAM,CAAC,UAACC,IAAI,EAAEC,CAAC,EAAEC,CAAC,EAAK;MAClDF,IAAI,WAAIN,QAAQ,cAAIQ,CAAC,GAAG,CAAC,EAAG,GAAGP,MAAM,CAACO,CAAC,CAAC;MACxC,OAAOF,IAAI;IACb,CAAC,EAAE,CAAC,CAAC,CAAC;EACR,CAAC,CAAC,CAACD,MAAM,CAAC,UAACC,IAAI,EAAEG,GAAG,EAAK;IACvBH,IAAI,GAAGT,MAAM,CAACa,MAAM,CAACb,MAAM,CAACa,MAAM,CAAC,CAAC,CAAC,EAAEJ,IAAI,CAAC,EAAEG,GAAG,CAAC;IAClD,OAAOH,IAAI;EACb,CAAC,EAAE,CAAC,CAAC,CAAC;EACN,IAAMK,cAAc,GAAGhB,QAAQ,KAAK,I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